<?php

require_once dirname(__FILE__) . '/../lib/long_term_programGeneratorConfiguration.class.php';
require_once dirname(__FILE__) . '/../lib/long_term_programGeneratorHelper.class.php';

/**
 * long_term_program actions.
 *
 * @package    sf_sandbox
 * @subpackage long_term_program
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class long_term_programActions extends autoLong_term_programActions {

    public function executeQualifications($request) {
        $id = $request->getParameter('id');
        $this->getUser()->setAttribute('long_program_id', $id);
        $this->redirect('long_program_condition/index');
    }

    public function executeDelete_condition($request) {
        $id = $request->getParameter('id');
        LongProgramConditionTable::getInstance()->createQuery()->delete()->where('id = ?', $id)->execute();
        $this->redirect($request->getReferer());
    }

}
